<script setup lang="ts">
import * as example from '../config/serves'

const onclick = () => {
  example.exampleGet({
    key1: 'param1',
    key2: 1,
  })
}

const onclick2 = () => {
  example.examplePost({
    key1: 'data1',
    key2: 2,
  })
}
</script>
<template>
  <div>ajax</div>
  <ElButton type="warning" @click="onclick">Test axios</ElButton>
  <ElButton type="warning" @click="onclick2">Test async axios</ElButton>
</template>
<style scoped lang="scss">
/* sass,scss rules */
</style>
